package com.qinghong.blog.exception;

/**
 * 自定义通用异常处理
 */
public class BaseException extends RuntimeException{

    /**
     * 具体异常码
     */
    protected Integer code;

    /**
     * 异常信息
     */
    protected String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public BaseException(Integer code, String defaultMessage) {
        this.code = code;
        this.msg = defaultMessage;
    }

}
